<extend name="Base:main" />
<block name="title">
<title>推荐管理</title>
</block>
<block name="content">
<div class="row">
	<div class="box col-md-12">
		<div class="box-inner">
			<div class="box-header well" data-original-title="">
				<h2>
					<i class="glyphicon glyphicon-user"></i>推荐管理
				</h2>
				<div class="box-icon">
					<a data-target="#myModal" data-toggle="modal"
						href="{:U('Recommend/add')}"
						class="btn btn-add btn-round btn-default"><i
						class="glyphicon glyphicon-plus"></i></a> <a href="#"
						class="btn btn-minimize btn-round btn-default"><i
						class="glyphicon glyphicon-chevron-up"></i></a> <a href="#"
						class="btn btn-close btn-round btn-default"><i
						class="glyphicon glyphicon-remove"></i></a>
				</div>
			</div>
			<div class="box-content">
				<div class="alert alert-info">对推荐信息进行查看以及管理</div>
				<table
					class="table table-striped table-bordered bootstrap-datatable datatable responsive">
					<thead>
						<tr>
							<th>序号</th>
							<th>推荐标题</th>
							<th>推荐图片</th>
							<th>内容名字</th>
							<th>推荐类型</th>
							<th>操作</th>
						</tr>
					</thead>
					<tbody>
						<foreach name="list" item="val">
						<tr>
							<td>{++$i}</td>
							<td>{$val.title}</td>
							<td class="center"><a title="{$val.title}" href="{$val.image}"
								class="cboxElement"><img class="dashboard-avatar"
									src="{$val.image}" alt="{$val.title}" style="display: block;"></a></td>
							<td>{$val.name}</td>
							<td class="center"><switch name="val.type"> <case value="Scenic">
								<span class="label-warning label label-default">景区</span></case>
								<case value="Module">
								<span class="label-success label label-default">模块</span></case>
								</switch></td>
							<td class="center">
								<!-- <a class="btn btn-success" href="#">
                <i class="glyphicon glyphicon-zoom-in icon-white"></i>
                View
            </a> --> <a data-target="#myModal" data-toggle="modal"
								href="__CONTROLLER__/update" class="btn btn-info btn-setting"> <i
									class="glyphicon glyphicon-edit icon-white"></i> 修改
							</a> <a data-target="#myModal" data-toggle="modal"
								class="btn btn-danger btn-delete"
								href="__CONTROLLER__/delete/id/{$account.id}"> <i
									class="glyphicon glyphicon-trash icon-white"></i> 删除
							</a>
							</td>
						</tr>
						</foreach>
					</tbody>
				</table>
			</div>
		</div>
	</div>
	<!--/span-->

</div>
<!--/row--> </block>